<?php

namespace app\controllers;

use core\{Session};

class Wiki extends \core\Controller
{
    // public function __construct()
    // {
    //     if (! isLogged()) {
    //         redirect(url('/login'));
    //     }
    // }

    public function index()
    {
        $this->pageInfo = ['title' => '百科'];
    }

    public function new()
    {
        $this->view('post/new');
    }
}
